package com.project.exception;
/**
 * @Author liuyi
 * @Description //业务异常处理类
 * @Date 2021/12/15 15:54
 * @Param
 * @return
 **/
public class BusinessException extends RuntimeException {


    private int code = 1;

    public int getCode() {
        return code;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String message, int code) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code) {
        this.code = code;
    }


}
